<form id="textbookForm" action="index.php?{$znf.moduleIndex}=textbook&amp;{$znf.actionIndex}=textbookFormSubmit{if isset($pageID)}&amp;pageID={$pageID}{/if}" method="post">
    <fieldset>
        <legend>Podatki o učbeniku</legend>
	{if isset($textbook)}<input type="hidden" name="id" value="{$textbook.id}" />{/if}
	{if isset($userId)}<input type="hidden" name="userId" value="{$userId}" />{/if}
        <table>
            <tbody>
                <tr>
                    <td><label for="isbn">ISBN</label></td>
                    <td><input id="isbn" type="text" name="isbn" size="20" maxlength="20" value="{$textbook.isbn}"/></td>
                </tr>
                <tr>
                    <td><label for="title">Naslov*</label></td>
                    <td><input id="title" type="text" name="title" size="60" maxlength="60" value="{$textbook.title}"/></td>
                </tr>
                <tr>
                    <td><label for="authors">Avtor*</label></td>
                    <td><input id="authors" type="text" name="authors" size="60" maxlength="200" value="{$textbook.authors}"/></td>
                </tr>
                <tr>
                    <td><label for="publisher">Založnik*</label></td>
                    <td><input id="publisher" type="text" name="publisher" size="60" maxlength="60" value="{$textbook.publisher}"/></td>
                </tr>
                <tr>
                    <td><label for="published">Leto izdaje*</label></td>
                    <td><input id="published" type="text" name="published" size="6" maxlength="6" value="{$textbook.published}"/></td>
                </tr>
                <tr>
                    <td><label for="price">Cena</label></td>
                    <td><input id="price" type="text" name="price" size="6" maxlength="6" value="{$textbook.price}"/></td>
                </tr>
                <tr>
                    <td>Prodaja/Zamenjava*</td>
                    <td>
		        <input id="forfree" type="radio" name="freeOrSale" value="forfree" {if isset($textbook.forfree) and $textbook.forfree eq 1}checked="checked"{/if} /><label for="forfree">Podarim</label><br />
		        <input id="forsale" type="radio" name="freeOrSale" value="forsale" {if isset($textbook.forsale) and $textbook.forsale eq 1}checked="checked"{/if} /><label for="forsale">Prodajam</label><br />
		        <input id="forchange" type="checkbox" name="forchange" {if isset($textbook.forchange) and $textbook.forchange eq 1}checked="checked"{/if} /><label for="forchange">Zamenjam</label><br />
		    </td>
                </tr>
                <tr>
                    <td><label for="comment">Opomba</label></td>
                    <td><textarea id="comment" name="comment" rows="10" cols="46">{$textbook.comment}</textarea>
                </tr>
            </tbody>
        </table>
    </fieldset>
    <p>Polja, označena z zvezdico (*), so obvezna.</p>
    <div class="buttons">
	{if isset($pageID)}
	    <a id="back" class="button" href="index.php?{$znf.moduleIndex}=textbook&amp;{$znf.actionIndex}=textbookList&amp;pageID={$pageID}{if isset($userId)}&amp;userId={$userId}{/if}&amp;fp=t">Nazaj</a>
	{/if}
	<button type="reset" class="button">Prekliči</button>
	<button type="submit" class="button positive">Predloži</button>
    </div>
</form>
